import java.util.Random;

public class Practice02 {
    public static void main(String[] args) {
        //给定一个整数数组，编写一个程序，移除数组中的重复元素，输出一个去重后的数组。
        int[] num = new int[10];
        Random random = new Random();
        for (int i = 0; i < num.length ; i++) {
            num[i] = random.nextInt(10) + 10;
            System.out.print(num[i] + "\t");
        }
        System.out.println();
        loop:
        for (int i = 0; i < num.length; i++) {
            for (int j = i + 1; j < num.length; j++) {
                if (num[i] == num[j]) {
                    continue loop;
                }
            }
            System.out.print(num[i] + "\t");
        }
    }
}
